char *turns_only = NULL;
char *controls = NULL;
char *split = NULL;
-char *times = NULL;
+char *timesynth = NULL;
int control = 0;
NULL, ARGTYPE_BOOL, ARG_NOMINMAX },
{"controls", &controls, "Read control points as waypoint/route/none",
"none", ARGTYPE_STRING, ARG_NOMINMAX },
- {"times", ×, "Synthesize track times",
+ {"times", ×ynth, "Synthesize track times",
NULL, ARGTYPE_BOOL, ARG_NOMINMAX },
ARG_TERMINATOR
};
count = ReadLong(infile);
if ( count ) {
track_head = route_head_alloc();
- if ( times ) {
+ if ( timesynth ) {
track_add_head(track_head);
}
else {
if ( track_head->rte_waypt_ct ) {
old_track_head = track_head;
track_head = route_head_alloc();
- if ( times ) {
+ if ( timesynth ) {
track_add_head( track_head );
}
else {
}
}
- if ( times ) {
+ if ( timesynth ) {
le_read64( &seglen,
record + 2 + stringlen + 0x08 );
starttime = le_read32((unsigned long *)
sprintf( wpt_tmp->shortname, "\\%5.5x",
serial++ );
}
- if ( times ) {
+ if ( timesynth ) {
if ( !first ) {
double dist = radtomiles(gcdist(
RAD(lat), RAD(-lon),
if ( turns_important && stringlen )
wpt_tmp->route_priority=1;
if ( !turns_only || stringlen ) {
- if ( times ) {
+ if ( timesynth ) {
track_add_wpt(track_head,wpt_tmp);
}
else {
route_add_wpt(track_head, wpt_tmp);
}
if ( old_track_head ) {
- if ( times ) {
+ if ( timesynth ) {
track_add_wpt(old_track_head,
waypt_dupe(wpt_tmp));
}